# == Schema Information
#
# Table name: radgroupcheck
#
#  id        :integer          not null, primary key
#  groupname :string(64)       default(""), not null
#  attr      :string(64)       default(""), not null
#  op        :string(2)        default("=="), not null
#  value     :string(253)      default(""), not null
#  group_id  :integer
#

class Radgroupcheck < ActiveRecord::Base
	self.table_name = "radgroupcheck"
  belongs_to :group

  validates_presence_of :groupname, :group_id, :attr, :op, :value
  validates_uniqueness_of :attr

end
